Optimal. Leaf size=83 \[ -\frac{4 a^2 (a c-b c x)^{n+1}}{b c (n+1)}-\frac{(a c-b c x)^{n+3}}{b c^3 (n+3)}+\frac{4 a (a c-b c x)^{n+2}}{b c^2 (n+2)} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0770858, antiderivative size = 83, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.053 \[ -\frac{4 a^2 (a c-b c x)^{n+1}}{b c (n+1)}-\frac{(a c-b c x)^{n+3}}{b c^3 (n+3)}+\frac{4 a (a c-b c x)^{n+2}}{b c^2 (n+2)} \]
Antiderivative was successfully verified.
[In] Int[(a + b*x)^2*(a*c - b*c*x)^n,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 18.998, size = 66, normalized size = 0.8 \[ - \frac{4 a^{2} \left (a c - b c x\right )^{n + 1}}{b c \left (n + 1\right )} + \frac{4 a \left (a c - b c x\right )^{n + 2}}{b c^{2} \left (n + 2\right )} - \frac{\left (a c - b c x\right )^{n + 3}}{b c^{3} \left (n + 3\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((b*x+a)**2*(-b*c*x+a*c)**n,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0582491, size = 77, normalized size = 0.93 \[ \frac{(b x-a) \left (a^2 \left (n^2+7 n+14\right )+2 a b \left (n^2+5 n+4\right ) x+b^2 \left (n^2+3 n+2\right ) x^2\right ) (c (a-b x))^n}{b (n+1) (n+2) (n+3)} \]
Antiderivative was successfully verified.
[In] Integrate[(a + b*x)^2*(a*c - b*c*x)^n,x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.01, size = 103, normalized size = 1.2 \[ -{\frac{ \left ({b}^{2}{n}^{2}{x}^{2}+2\,ab{n}^{2}x+3\,{b}^{2}n{x}^{2}+{a}^{2}{n}^{2}+10\,abnx+2\,{b}^{2}{x}^{2}+7\,{a}^{2}n+8\,abx+14\,{a}^{2} \right ) \left ( -bx+a \right ) \left ( -bcx+ac \right ) ^{n}}{b \left ({n}^{3}+6\,{n}^{2}+11\,n+6 \right ) }} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((b*x+a)^2*(-b*c*x+a*c)^n,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)^2*(-b*c*x + a*c)^n,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.240046, size = 173, normalized size = 2.08 \[ -\frac{{\left (a^{3} n^{2} + 7 \, a^{3} n -{\left (b^{3} n^{2} + 3 \, b^{3} n + 2 \, b^{3}\right )} x^{3} + 14 \, a^{3} -{\left (a b^{2} n^{2} + 7 \, a b^{2} n + 6 \, a b^{2}\right )} x^{2} +{\left (a^{2} b n^{2} + 3 \, a^{2} b n - 6 \, a^{2} b\right )} x\right )}{\left (-b c x + a c\right )}^{n}}{b n^{3} + 6 \, b n^{2} + 11 \, b n + 6 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)^2*(-b*c*x + a*c)^n,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 3.21102, size = 819, normalized size = 9.87 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x+a)**2*(-b*c*x+a*c)**n,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.222816, size = 378, normalized size = 4.55 \[ \frac{b^{3} n^{2} x^{3} e^{\left (n{\rm ln}\left (-b c x + a c\right )\right )} + a b^{2} n^{2} x^{2} e^{\left (n{\rm ln}\left (-b c x + a c\right )\right )} + 3 \, b^{3} n x^{3} e^{\left (n{\rm ln}\left (-b c x + a c\right )\right )} - a^{2} b n^{2} x e^{\left (n{\rm ln}\left (-b c x + a c\right )\right )} + 7 \, a b^{2} n x^{2} e^{\left (n{\rm ln}\left (-b c x + a c\right )\right )} + 2 \, b^{3} x^{3} e^{\left (n{\rm ln}\left (-b c x + a c\right )\right )} - a^{3} n^{2} e^{\left (n{\rm ln}\left (-b c x + a c\right )\right )} - 3 \, a^{2} b n x e^{\left (n{\rm ln}\left (-b c x + a c\right )\right )} + 6 \, a b^{2} x^{2} e^{\left (n{\rm ln}\left (-b c x + a c\right )\right )} - 7 \, a^{3} n e^{\left (n{\rm ln}\left (-b c x + a c\right )\right )} + 6 \, a^{2} b x e^{\left (n{\rm ln}\left (-b c x + a c\right )\right )} - 14 \, a^{3} e^{\left (n{\rm ln}\left (-b c x + a c\right )\right )}}{b n^{3} + 6 \, b n^{2} + 11 \, b n + 6 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)^2*(-b*c*x + a*c)^n,x, algorithm="giac")
[Out]